package com.haoze.nurse.dao;

import com.haoze.nurse.model.NurseStatisticsDetailEntity;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface FileIndexDataMapper {
    /**
     * 根据时间范围获取需要参与统计的记录
     *
     * @param inpatNum
     * @param tplId
     * @param beginTime
     * @param endTime
     * @return
     */
    List<Map<String, String>> queryStatisticsDetailDatas(@Param("inpatNum") String inpatNum,
                                                         @Param("tplId") String tplId,
                                                         @Param("beginTime") Date beginTime,
                                                         @Param("endTime") Date endTime);

    List<String> queryAllFileIndexData(@Param("emrFileId") String emrFileId);

    /**
     * 根据已知的病历模板明细ID获取对应的element_id，再查询出对应的varCode
     * @param fileIndexDataId
     * @return
     */
    String queryVarCodeByFileIndexDataId(@Param("fileIndexDataId") String fileIndexDataId);

}
